Make a freshness test more robust on OSX
authorAlex Crichton <alex@alexcrichton.com>
Tue, 2 Jun 2015 01:24:57 +0000 (18:24 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 2 Jun 2015 01:24:57 +0000 (18:24 -0700)
commit8086ab40d579d352cbe7e789ada1182dff2834c1
treece56a83aad5c004940e0c89aa493e344d11ef104
parent06dbe6555a4a15f5912bbfc841d446dad4d417cc
Make a freshness test more robust on OSX

Tests are often flaky because the resolution of the OSX filesystem timestamps
appears to be 1s, so we often have to manually sleep for 1s to ensure that
enough time has passed to guarantee that the timestamp is different (used in
freshness calculations).
tests/test_cargo_freshness.rs